package com.kalua.list.domainmodel.security;

import static com.kalua.list.domainmodel.security.MobilePhoneNumberTest.createTestMobilePhoneNumber;
import junitx.extensions.EqualsHashCodeTestCase;

public class MobilePhoneNumberHashCodeAndEquals extends EqualsHashCodeTestCase {

	private MobilePhoneNumber instance;
	private MobilePhoneNumber notEqualInstance;
	
	public MobilePhoneNumberHashCodeAndEquals()  { 
		super(MobilePhoneNumberHashCodeAndEquals.class.getSimpleName());
		instance = createTestMobilePhoneNumber();
		notEqualInstance = createTestMobilePhoneNumber();
	}

	@Override
	protected Object createInstance() throws Exception 
	{ return new MobilePhoneNumber(instance.getRawFormat()); }

	@Override
	protected Object createNotEqualInstance() throws Exception 
	{ return new MobilePhoneNumber(notEqualInstance.getRawFormat()); }
}
